public class Test2 {
    public static void main(String[] args) {
        String str = "0.1";
        String[] nums = str.split("\\.");
        for (String n : nums){
            System.out.println(n);
        }
    }
}
